package main

import "fmt"

/*
 分支结构、循环结构
*/

func main() {
	//forMethod()
	// 类型推倒
	var name = "张三"
	fmt.Println(name)
	var num = 18
	fmt.Println(num)
	age := 19
	fmt.Println(age)

	var n1, n2, n3 int
	var a1, a2, a3 = "张三", 18, 8.8
	fmt.Println(n1, n2, n3)
	fmt.Println(a1, a2, a3)
	intList := []int{1, 2, 3, 4, 5}
	fmt.Println(intList)

}
